﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ForumsBrowser.DataObjects
{
    [XmlRoot("thread")]
    public class Thread : IGuidIdObject
    {
        [XmlAttribute("id")]
        public Guid Id { get; set; }
        [XmlAttribute("discussionGroupId")]
        public Guid DiscussionGroupId { get; set; }
        [XmlAttribute("authorId")]
        public Guid AuthorId { get; set; }
        [XmlAttribute("replies")]
        public int Replies { get; set; }
        [XmlAttribute("views")]
        public int Views { get; set; }
        [XmlElement("topic")]
        public string Topic { get; set; }
        [XmlElement("createdOn")]
        public string CreatedOn { get; set; }
        [XmlElement("url")]
        public string Url { get; set; }
        [XmlAttribute("type")]
        public string Type { get; set; }

        [XmlElement("lastReply")]
        public Reply LastReply { get; set; }
    }
}
